﻿/**
 * \file Fruit.cs
 * \brief decorateur fruit
 * */
namespace Implementation
{
	using interfaces;
	using System;
	using System.Collections.Generic;
	using System.Linq;
	using System.Text;
    [SerializableAttribute()]
	public class Fruit : DecorateurResource
	{
        protected int nourriture;

        Case caze { get; set; }

		public virtual int getMinerai()
		{
            return caze.getMinerai();
		}

		public virtual int getNouriture()
		{
            return caze.getNouriture() + nourriture;
		}

        public virtual string getType()
        {
            return "fruit";
        }

        public virtual Case getCase()
        {
            return caze;
        }

		public Fruit( Case c)
		{
            caze = c;
            nourriture = 2;
		}

	}
}

